package test;

import com.game.Dealer;
import com.user.Player;

public class FromOutside 
{
	public static void main(String[] args)
	{
		Dealer dealer = new Dealer();

		Player playerRoy = new Player("Roy");
		Player playerJessica = new Player("Jessica");
		Player playerAlex = new Player("Alex");
		Player playerTom = new Player("Tom");
		
		dealer.acceptPlayer(playerRoy);
		dealer.acceptPlayer(playerJessica);
		dealer.acceptPlayer(playerAlex);
		dealer.acceptPlayer(playerTom);

		dealer.assignCards();
		
		System.out.println(playerRoy.getName()+" : "+playerRoy.getCardsString());
		System.out.println(playerJessica.getName()+" : "+playerJessica.getCardsString());
		System.out.println(playerAlex.getName()+" : "+playerAlex.getCardsString());
		System.out.println(playerTom.getName()+" : "+playerTom.getCardsString());
		
		System.out.println(dealer.judgeWinner().getName());
	}
}
